package user;


import book.BooList;
import book.Book;
import operation.IOperation;

public abstract class User {
    public String name;
    public IOperation[] iOperations;
    public User(String name){
        this.name = name;
    }

    public abstract int menu();
    public void doOperation(int choice, BooList books){
//       return this.iOperations[choice];
        IOperation iOperation = this.iOperations[choice];
        iOperation.work(books);
    }
}
